HAL RTC Secure and Privilege functions migration ¶
This section provides information about the HAL RTC Secure and Privilege functions migration.
Note
The RTC handle is removed in HAL2, so for the following RTC HAL2 functions, the handle will be removed from the parameters.
Related concept: Other HAL RTC changes
HAL RTC set secure mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_RTCEx_SecureModeSet(RTC_HandleTypeDef *hrtc,
RTC_SecureStateTypeDef *secureState)
|
hal_status_t HAL_RTC_SetSecAttr(uint32_t item,
hal_rtc_sec_attr_t sec_attr)
|
HAL RTC get secure mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_RTCEx_SecureModeGet(RTC_HandleTypeDef *hrtc,
RTC_SecureStateTypeDef *secureState)
|
hal_rtc_sec_attr_t HAL_RTC_GetSecAttr(uint32_t item)
|
HAL RTC get privilege mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_RTCEx_PrivilegeModeGet(RTC_HandleTypeDef *hrtc,
RTC_PrivilegeStateTypeDef *privilegeState)
|
hal_rtc_priv_attr_t HAL_RTC_GetPrivAttr(uint32_t item)
|
HAL RTC set privilege mode ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_StatusTypeDef HAL_RTCEx_PrivilegeModeSet(RTC_HandleTypeDef *hrtc,
RTC_PrivilegeStateTypeDef *privilegeState)
|
hal_status_t HAL_RTC_SetPrivAttr(uint32_t item,
hal_rtc_priv_attr_t priv_attr)
|